package info.liujiachen.security.test;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
public class CORSJwtToken {

    @RequestMapping({"/", "/home"})
    public String home() {
        return "home";
    }

    @RequestMapping("/api/admin/user")
    public String user() {
        return "home";
    }

    @RequestMapping("/api/admin/test")
    public String test() {
        return "test";
    }

    public static void main(String[] args) {
        SpringApplication.run(CORSJwtToken.class, args);
    }

}
